package cn.itsource.pethome.org.domain;

import cn.itsource.pethome.basic.domain.BaseDomain;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Department extends BaseDomain{
    private String sn;
    private String name;
    private Integer state;
    private String path;
    private Employee manager;
    private Department parent;
    private List<Department> children;

    public String getLabel(){
        return this.name;
    }
    public String getValue(){
        return String.valueOf(id);
    }
}
